#include <iostream>
#include <signal.h>
#include "hunter.h"
#include "Util/logger.h"

using namespace Fdt;

int main(){
    CHunter::Instance()->Start();
    //等待进程退出信号
    static Semaphore sem;
    signal(SIGINT, [](int) { sem.post(); });// 设置退出信号
    sem.wait();
    CHunter::Instance()->Stop();
    return 0;
}